<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./lib/bootstrap/css/bootstrap.min.css">
    <style>
        .container{
            background-color: red;
        }
        .lie{
            border: 1px solid blue;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="row">
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
          </div>
        <div class="row">
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1 col-sm-offset-2">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
            <div class="lie col-md-1">.col-md-1</div>
          </div>
          <div class="row">
            <div class="lie col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
            <div class="lie col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
          
            <!-- Add the extra clearfix for only the required viewport -->
            <div class="lie clearfix visible-xs-block"></div>
          
            <div class="lie col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
            <div class="lie col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
          </div>
          <div class="row">
            <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">1</div>
            <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">2</div>
            <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">3</div>
            <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">4</div>
          </div>
    </div>
</body>
</html>